package com.example.NetworkSender.ui;

import android.view.KeyEvent;
import android.widget.TextView;
import com.example.NetworkSender.Engine;

public class PortListener implements TextView.OnEditorActionListener {

    private final Engine engine;

    public PortListener(Engine engine) {
        this.engine = engine;
    }

    @Override
    public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
        int port = Integer.parseInt(v.getText().toString());
        return true;
    }
}
